﻿<%@ Page Title="" Language="C#" MasterPageFile="~/iFrameMasterPage.master" AutoEventWireup="true" CodeFile="iFrameAdmin_TreeDictionaryMap.aspx.cs" Inherits="iFrameAdmin_TreeDictionaryMap" %>

<%@ Register src="Ctl/ctlTaskEditor.ascx" tagname="ctltaskeditor" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
   <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        
    <table width ="100%" cellpadding ="2px" cellspacing ="0">
                            <tr >
                                <td  class ="grd_td_head"   style ="width :20px"  >
                                 &nbsp
                                </td>
                                <td  class ="grd_td_head" style="text-align :left" >
                                    Наименование справочника
                                </td>                                
                                <td style ="width :200px; text-align :center "  class ="grd_td_head" >
                                    Использовать справочник
                                </td>
                                <td style="width:25px; text-align :right " >
                                &nbsp
                                </td>
                            </tr>
                        </table>
    <table width ="100%" cellpadding ="0" cellspacing ="0">
        
        <asp:ListView ID="lvTreeDictionaryMap" runat="server">
            <LayoutTemplate >
                <tr runat="server" id="itemPlaceholder" >
                </tr>
            </LayoutTemplate>
            <ItemTemplate >
                <tr >
                    <td class ="grd_td_item">
                        <table width ="100%" cellpadding ="2px" cellspacing ="0">
                            <tr >
                                <td   style ="width :15px"  >
                                    <asp:Image ID=Image1 runat="server"  ImageUrl ="~/images/grippy.png"/>
                                </td>
                                <td  style="text-align :left" >
                                    <%#(string)Eval("DictionaryName")%>   
                                </td>                                
                                <td style ="width :200px; text-align :center "  >
                                    <asp:UpdatePanel  runat="server">
                                        <ContentTemplate  >
                                          <asp:Button ID=Button6 CssClass ="btn" 
                                        CommandArgument =<%#(string)Eval("ID") %>   
                                        Font-Bold = <%#!(bool)Eval("UseSystemDictionary") %>
                                        Text=<%# ((bool)Eval("UseSystemDictionary")? "Провайдера":"Собственный" )  %> runat="server" 
                                        OnClick ="ReverceSetting_Click"
                                        />
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                                <td style="width:25px; text-align :right " >
                                &nbsp
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </ItemTemplate>            
            
        </asp:ListView>
    </table>
</asp:Content>

